<?php
/**
 * 控制器抽象类， 主要是对视图的控制
 * 其中定义的一些私有方法将会在其他地方被调用
 *
 * @package     admin controller
 * @author      harry <luohailio@126.com>
 * @copyright   Copyright (c) 2009 Harry .
 */
class controller_Abstruct extends FLEA_Controller_Action
{

	function __construct()
	{
		//获取控制器的名字
		$this->controller = strtolower(FLEA::getAppInf('FLEA.internal.currentControllerName'));
		$this->action = strtolower(FLEA::getAppInf('FLEA.internal.currentActionName'));
		
		$this->smarty =& $this->_getView();
		$this->smarty->assign(array(
			'ctrl' => $this->controller,
			'act'  => $this->action,
		));
	}
}